// 引入Navigate组件，用来设置默认跳转，
import { Navigate } from "react-router-dom"
import Kehu from "../components/kehu/Kehu"
import ZiChan from "../components/zichan/ZiChan"
import ZhaoShang from "../components/zhaoshang/ZhaoShang"


import Louyu from "../components/zichan/Louyu"
import Space from "../components/zichan/Space"
import KuhuGuanli from "../components/kehu/KuhuGuanli"
import Qianyue from "../components/kehu/Qianyue"
import ZuqiUser from "../components/kehu/ZuqiUser"

import SpaceDingjia from "../components/zhaoshang/SpaceDingjia"
import ZuKong from "../components/zhaoshang/ZuKong"
import ZuYue from "../components/zhaoshang/ZuYue"

import Wuyefuwu from '../components/wuyefuwu/Wuyefuwu'
import ZuGuan from '../components/wuyefuwu/ZuGuan'
import ZuHuBAO from '../components/wuyefuwu/ZuHuBAO'
import BaoSet from '../components/wuyefuwu/BaoSet'
import GanOne from '../components/wuyefuwu/GanOne'
import GuanTwo from '../components/wuyefuwu/GuanTwo'
import MustKnow from '../components/wuyefuwu/MustKnow'



const getImg=(url)=>{
    return new URL(url,import.meta.url).href
  }

const menus = [
    
    {
        label:'资产',
        key:'zichan',
        icon: <img src="https://s21.ax1x.com/2024/11/26/pA4pD1g.png" alt="Asset Icon" style={{ width: '16px', height: '16px' }} />,
        path:'zichan',
        element:<ZiChan></ZiChan>,
        children:[
            {
                label:'楼宇',
                key:'lou',
                path:'lou',
                element:<Louyu></Louyu>,
            },
            {
                label:'空间',
                key:'space',
                path:'space',
                element:<Space></Space>,
            },
        ]
    },
    {
        label:'客户',
        key:'user',
        icon: <img src="https://s21.ax1x.com/2024/11/26/pA4prcQ.png" alt="Asset Icon" style={{ width: '16px', height: '16px' }} />,
        path:'user',
        element:<Kehu></Kehu>,
        children:[
            {
                label:'客户管理',
                key:'kehuguanli',
                path:'kehuguanli',
                element:<KuhuGuanli></KuhuGuanli>,
            },
            {
                label:'签约联系人',
                key:'qianyue',
                path:'qianyue',
                element:<Qianyue></Qianyue>,
            },
            {
                label:'租期管理员',
                key:'zuqiuser',
                path:'zuqiuser',
                element:<ZuqiUser></ZuqiUser>,
            }
        ]
    },
    {
        label:'招商',
        key:'zhaoshang',
        icon: <img src="https://s21.ax1x.com/2024/11/26/pA4p53F.png" alt="Asset Icon" style={{ width: '16px', height: '16px' }} />,
        path:'zhaoshang',
        element:<ZhaoShang></ZhaoShang>,
        children:[
            {
                label:'空间定价',
                key:'kongjiandingjia',
                path:'kongjiandingjia',
                element:<SpaceDingjia></SpaceDingjia>,
            },
            {
                label:'租控',
                key:'zukong',
                path:'zukong',
                element:<ZuKong></ZuKong>,
            },
            {
                label:'租约',
                key:'zuyue',
                path:'zuyue',
                element:<ZuYue></ZuYue>,
            }
        ]
    },
    {
        label:'物业服务',
        key:'wuye',
        icon: <img src="https://www.helloimg.com/i/2024/11/26/6745b291d8cb0.png" alt="Asset Icon" style={{ width: '16px', height: '16px' }} />,
        path:'wuye',
        element:<Wuyefuwu></Wuyefuwu>,
        children:[
            {
                label:'租期管理',
                key:'zuguan',
                path:'zuguan',
                element:<ZuGuan></ZuGuan>,
            },
            {
                label:'租户保修',
                key:'zuhubaoxiu',
                path:'zuhubaoxiu',
                element:<ZuHuBAO></ZuHuBAO>,
            },
            {
                label:'报修设置',
                key:'baoset',
                path:'baoset',
                element:<BaoSet></BaoSet>,
            },
            {
                label:'管理员公告',
                key:'ganone',
                path:'ganone',
                element:<GanOne></GanOne>,
            },
            {
                label:'管理员反馈',
                key:'guantwo',
                path:'guantwo',
                element:<GuanTwo></GuanTwo>,
            },
            {
                label:'物业须知',
                key:'must',
                path:'must',
                element:<MustKnow></MustKnow>,
            }
        ]
    }


]
export default menus